import request from '@/utils/request'

// 查询物料维护审核

export function listShenhe(query) {
  return request({
    url: '/gyl/shenhe/list',
    method: 'get',
    params: query
  })
}

// 查询物料维护审核

export function getShenhe(id) {
  return request({
    url: '/gyl/shenhe/' + id,
    method: 'get'
  })
}

// 新增物料维护审核

export function addShenhe(data) {
  return request({
    url: '/gyl/shenhe',
    method: 'post',
    data: data
  })
}

// 修改物料维护审核

export function updateShenhe(data) {
  return request({
    url: '/gyl/shenhe',
    method: 'put',
    data: data
  })
}

// 删除物料维护审核

export function delShenhe(id) {
  return request({
    url: '/gyl/shenhe/' + id,
    method: 'delete'
  })
}

//修改某一列数据
export function PutShenhe(data){
  return request({
    url:'/gyl/shenhe/editByIds',
    method:'put',
    data:data
  })
}
